home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_pcdp / adas / ren.ada < prev    next >
Text File  |  1996-01-30  |  496b  |  35 lines

  1. with Text_IO; use Text_IO;
  2. with Integer_Text_IO; use Integer_Text_IO;
  3. procedure ren is
  4.  
  5. task t1 is
  6.   entry e(i: in integer);
  7. task body t1 is
  8. begin
  9.   loop
  10.     accept e(i: in integer) do
  11.       put("Rendezvous with "); put(i); new_line;
  12.     end e;
  13.   end loop;
  14. end t1;
  15.  
  16. task t2;
  17. task body t2 is
  18. begin
  19.   for i in 1 .. 5 loop
  20.     t1.e(2);
  21.   end loop;
  22. end t2;
  23.  
  24. task t3;
  25. task body t3 is
  26. begin
  27.   for i in 1 .. 5 loop
  28.     t1.e(3);
  29.   end loop;
  30. end t3;
  31.  
  32. begin
  33.   null;
  34. end;
  35.